package com.marvels.product.param.service;

import java.util.List;
import java.util.Map;

import com.github.pagehelper.PageInfo;
import com.marvels.common.exception.MarvelsBusinessException;
import com.marvels.product.param.dto.McptPaymentSequenceDTO;
import com.marvels.product.param.dto.McptPaymentSequenceItemDTO;
import com.marvels.product.param.dto.McptProduct;

public interface PaymentSequenceService {

	
	PageInfo<McptPaymentSequenceDTO> getPageInfoByParam(Map<String, Object> param) throws MarvelsBusinessException;

	List<McptPaymentSequenceItemDTO> getInitInfo();

	void insert(McptPaymentSequenceDTO dto) throws MarvelsBusinessException;

	void updateStatus(McptPaymentSequenceDTO dto) throws MarvelsBusinessException;

	McptPaymentSequenceDTO getEntityByPrimaryKey(Long paymentSequenceId) throws MarvelsBusinessException;

	void updateByPrimaryKey(McptPaymentSequenceDTO dto) throws MarvelsBusinessException;
	/**
	 * 根据主键删除记录
	 * @param dto
	 * @return
	 * @throws MarvelsBusinessException
	 */
	int deleteByPrimaryKey(McptPaymentSequenceDTO dto) throws MarvelsBusinessException;
	
	/**根据sequencecode查询还款顺序
	 * @author 娄凯琦
	 * @date 2018年5月9日  
	 * @return
	 * @throws MarvelsBusinessException
	 */
	public McptPaymentSequenceDTO getPaymentSequenceByPaymentSeq(McptProduct dto)throws MarvelsBusinessException;
}
